package demo5;

public class B extends A {
    private int num = 1;
    public B() {
        this.num = 2;
    }

    @Override
    public void func() {
        System.out.println("B.func():num = " + this.num);
    }

    public void show() {
        System.out.println("num = " + this.num);
    }
}
